import Vue from 'vue'
import VueRouter from 'vue-router'
import Hot from '@/views/Hot.vue'

Vue.use(VueRouter)

const routes = [
	// 首页热映
	{
		path: '/',
		name: 'Hot',
		// component: () => import('@/views/Hot.vue')
		component: Hot,
	},
	// 视频
	{
		path: '/video',
		name: 'Video',
		meta: {
			hidenav: true,
		},
		component: () => import('@/views/Video.vue')
	},
	// 小视频
	{
		path: '/shortvideo',
		name: 'ShortVideo',
		meta: {
			hidenav: true,
		},
		component: () => import('@/views/ShortVideo.vue')
	},
	// 演出
	{
		path: '/perform',
		name: 'Perform',
		meta: {
			hidenav: true,
		},
		component: () => import('@/views/Perform.vue')
	},
	// 我的
	{
		path: '/mine',
		name: 'Mine',
		meta: {
			hidenav: true,
		},
		component: () => import('@/views/Mine.vue')
	},

	// 首页待映
	{
		path: '/released',
		name: 'Released',
		component: () => import('@/views/Released.vue')
	},

	{
		path: '/buyinfo/:id',
		name: 'BuyInfo',
		props: true,
		meta: {
			// hidenav: true,
			hidefoot: true,
			// hidetitle: true
		},
		component: () => import('@/views/BuyInfo.vue')
	},

	{
		path: '/classic',
		name: 'Classic',
		component: () => import('@/views/Classic.vue')
	},

	{
		path: '/player',
		name: 'Player',
		props: true,
		meta: {
			hidenav: true,
			hidefoot: true,
			hidetitle: true
		},
		component: () => import('@/components/Player.vue')
	},

	{
		path: '/videoinfo',
		name: 'VideoInfo',
		props: true,
		meta: {
			hidenav: true,
			hidefoot: true,
			hidetitle: true
		},
		component: () => import('@/components/VideoInfo.vue')
	},

	{
		path: '/moviepage/:id',
		name: 'MoviePage',
		props: true,
		meta: {
			hidenav: true,
			hidefoot: true,
			hidetitle: true
		},
		component: () => import('@/views/MoviePage.vue')
	},

	{
		path: '/city',
		name: 'City',
		props: true,
		meta: {
			hidenav: true,
			hidefoot: true,
			hidetitle: true
		},
		component: () => import('@/views/City.vue')
	},

	{
		path: '/videoshow',
		name: 'VideoShow',
		props: true,
		meta: {
			hidenav: true,
			hidefoot: true,
			hidetitle: true
		},
		component: () => import('@/views/VideoShow.vue')
	},

	{
		path: '/relatedvideos',
		name: 'RelatedVideos',
		props: true,
		meta: {
			hidenav: true,
			hidefoot: true,
			hidetitle: true
		},
		component: () => import('@/components/RelatedVideos.vue')
	},

	{
		path: '/search',
		name: 'Search',
		props: true,
		meta: {
			hidefoot: true,
		},
		component: () => import('@/views/Search.vue')
	},

	// {
	// 	path: '/cinema/detail/:cid',
	// 	name: 'CinemaDetail',
	// 	props: true,
	// 	meta: {
	// 		hidenav: true,
	// 		hidefoot: true,
	// 		hidetop: true
	// 	},
	// 	component: () => import('@/views/CinemaDetail.vue')
	// },
]

const router = new VueRouter({
	routes
})

export default router
